//
//  SportsViewController.m
//  SinaNews
//
//  Created by qianfeng on 15-6-16.
//  Copyright (c) 2015年 耿宁. All rights reserved.
//

#import "SportsViewController.h"
#import "NewsModel.h"
#import "NewsCell.h"
@interface SportsViewController ()

@end

@implementation SportsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tableView.rowHeight=150;
   [self.tableView registerNib:[UINib nibWithNibName:@"NewsCell" bundle:nil] forCellReuseIdentifier:@"NewsCell"];

    [self downloadData:kSportUrl];
    
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
 NewsCell *cell=[tableView dequeueReusableCellWithIdentifier:@"NewsCell" forIndexPath:indexPath];
 NewsModel *model=self.dataArr[indexPath.row];
     [cell showDataWithModel:model];
    return cell;
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
